cmake_minimum_required(VERSION 3.10)
project(demo)
set(ONNXRUNTIME_ROOT "/home/hitcrt/lib_xcy/onnxruntime-linux-x64-1.20.1")
set(CMAKE_BUILD_TYPE Debug)#debug
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# 这个是手动下载的预编译，是绝对路径记得换！！
include_directories(${ONNXRUNTIME_ROOT}/include)
link_directories(${ONNXRUNTIME_ROOT}/lib)

find_package(OpenCV REQUIRED)


add_executable(demo ./demo.cpp)

target_link_libraries(demo PRIVATE 
    onnxruntime
    ${OpenCV_LIBS}
)